﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Fast.Extensions.DatabaseAccessor.EntityFrameworkCore
{
    /// <summary>
    /// 分页入参
    /// </summary>
    public class PagedRequest
    {
        /// <summary>
        /// 页索引
        /// </summary>
        [Range(1, int.MaxValue)]
        public virtual int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页记录
        /// </summary>
        [Range(1, 100)]
        public virtual int PageSize { get; set; } = 20;
    }
}
